﻿using System.ComponentModel.DataAnnotations;
using System.Web.Security;

namespace Aidbrella.Web.ViewModels
{
	public class UserViewModel
	{
        [Required, Display(Name = "First name")]
        public string FirstName { get; set; }

        [Required, Display(Name = "Last name")]
        public string LastName { get; set; }

        [Required]
        public string Password { get; set; }

        [Required, Display(Name = "User name")]
        public string UserName { get; set; }

        [Required, Display(Name = "Email addess")]
        public string Email { get; set; }

		public int PersonId { get; set; }
		public string Address { get; set; }

	}

	/// <summary>
	/// RegisterViewModel
	/// </summary>
	public class UserRegisterViewModel
	{
		public UserViewModel NewUser { get; set; }

		[Required(ErrorMessage = "Password required")]
		[StringLength(20, ErrorMessage = "Must be under {1} characters")]
        [Display(Name="Confirm password")]
		public string ConfirmPassword { get; set; }

		public UserRegisterViewModel()
		{
			NewUser = new UserViewModel();
		}
	}
}
